<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<body>
    <div id="app">
    <p v-for="(item,index) in List " :key="index">
        <span>下标:{{index}}</span>
        <span>数组项:{{item.message}}</span>
        
    </p>
    <p v-for="(item,index) in obj " :key="index">
        <span>:键{{item}}</span>
        <span>:值{{index}}</span>
    </p>
</div>
    <script>
        var app=new Vue({
            el:'#app',
            data:{
                List:[{ message: 'Foo' },{ message: 'Bar' }],
                obj:{
                    key1:'val1',
                    key2:'val2'
                }
            }
        })
    </script>
</body>
</html>